<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::CmdColorManagerChangeColor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpepr3d_1_1_cmd_color_manager_change_color.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classpepr3d_1_1_cmd_color_manager_change_color-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::CmdColorManagerChangeColor Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Command that changes a color in the palette.  
 <a href="classpepr3d_1_1_cmd_color_manager_change_color.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_cmd_color_manager_8h_source.html">CmdColorManager.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for pepr3d::CmdColorManagerChangeColor:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpepr3d_1_1_cmd_color_manager_change_color.png" usemap="#pepr3d::CmdColorManagerChangeColor_map" alt=""/>
  <map id="pepr3d::CmdColorManagerChangeColor_map" name="pepr3d::CmdColorManagerChangeColor_map">
<area href="classpepr3d_1_1_command_base.html" alt="pepr3d::CommandBase&lt; Geometry &gt;" shape="rect" coords="0,0,240,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a692f6a5497446867f9dd67a05badd53b"><td class="memItemLeft" align="right" valign="top"><a id="a692f6a5497446867f9dd67a05badd53b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>CmdColorManagerChangeColor</b> (size_t colorIdx, glm::vec4 color)</td></tr>
<tr class="separator:a692f6a5497446867f9dd67a05badd53b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d7bdcdb55b06f6829d320c8262e4ff6"><td class="memItemLeft" align="right" valign="top"><a id="a1d7bdcdb55b06f6829d320c8262e4ff6"></a>
std::string_view&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_cmd_color_manager_change_color.html#a1d7bdcdb55b06f6829d320c8262e4ff6">getDescription</a> () const override</td></tr>
<tr class="memdesc:a1d7bdcdb55b06f6829d320c8262e4ff6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get description of the command. <br /></td></tr>
<tr class="separator:a1d7bdcdb55b06f6829d320c8262e4ff6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpepr3d_1_1_command_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpepr3d_1_1_command_base')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classpepr3d_1_1_command_base.html">pepr3d::CommandBase&lt; Geometry &gt;</a></td></tr>
<tr class="memitem:aa4644cac610c68ac671fbf04af61186f inherit pub_methods_classpepr3d_1_1_command_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_base.html#aa4644cac610c68ac671fbf04af61186f">CommandBase</a> (bool isSlow=false, bool <a class="el" href="classpepr3d_1_1_command_base.html#aead9aa5e9149a485497805aa1a4527bf">canBeJoined</a>=false)</td></tr>
<tr class="separator:aa4644cac610c68ac671fbf04af61186f inherit pub_methods_classpepr3d_1_1_command_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a861152ab2c31b4257cf99e351da91418 inherit pub_methods_classpepr3d_1_1_command_base"><td class="memItemLeft" align="right" valign="top"><a id="a861152ab2c31b4257cf99e351da91418"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_base.html#a861152ab2c31b4257cf99e351da91418">isSlowCommand</a> () const</td></tr>
<tr class="memdesc:a861152ab2c31b4257cf99e351da91418 inherit pub_methods_classpepr3d_1_1_command_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is command slow and thus snapshot will be created before next command. <br /></td></tr>
<tr class="separator:a861152ab2c31b4257cf99e351da91418 inherit pub_methods_classpepr3d_1_1_command_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aead9aa5e9149a485497805aa1a4527bf inherit pub_methods_classpepr3d_1_1_command_base"><td class="memItemLeft" align="right" valign="top"><a id="aead9aa5e9149a485497805aa1a4527bf"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_command_base.html#aead9aa5e9149a485497805aa1a4527bf">canBeJoined</a> () const</td></tr>
<tr class="memdesc:aead9aa5e9149a485497805aa1a4527bf inherit pub_methods_classpepr3d_1_1_command_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Can this command be joined with other commands of the same type. <br /></td></tr>
<tr class="separator:aead9aa5e9149a485497805aa1a4527bf inherit pub_methods_classpepr3d_1_1_command_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6a4258a4f2c7c7f4981c566e103e92fd"><td class="memItemLeft" align="right" valign="top"><a id="a6a4258a4f2c7c7f4981c566e103e92fd"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_cmd_color_manager_change_color.html#a6a4258a4f2c7c7f4981c566e103e92fd">run</a> (<a class="el" href="classpepr3d_1_1_geometry.html">Geometry</a> &amp;target) const override</td></tr>
<tr class="memdesc:a6a4258a4f2c7c7f4981c566e103e92fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run the command, applying the modifications to the target. <br /></td></tr>
<tr class="separator:a6a4258a4f2c7c7f4981c566e103e92fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c77133a022d16d1aa55ba477dade531"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpepr3d_1_1_cmd_color_manager_change_color.html#a0c77133a022d16d1aa55ba477dade531">joinCommand</a> (const <a class="el" href="classpepr3d_1_1_command_base.html">CommandBase</a> &amp;otherBase) override</td></tr>
<tr class="memdesc:a0c77133a022d16d1aa55ba477dade531"><td class="mdescLeft">&#160;</td><td class="mdescRight">Join this command with other command of the same commandType, uniting both commands into this command's contents.  <a href="#a0c77133a022d16d1aa55ba477dade531">More...</a><br /></td></tr>
<tr class="separator:a0c77133a022d16d1aa55ba477dade531"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:afb2945590278744ce010cd5a3185f5d5"><td class="memItemLeft" align="right" valign="top"><a id="afb2945590278744ce010cd5a3185f5d5"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>mColorIdx</b></td></tr>
<tr class="separator:afb2945590278744ce010cd5a3185f5d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a155f0360a4c85f7ba025db530c1125a7"><td class="memItemLeft" align="right" valign="top"><a id="a155f0360a4c85f7ba025db530c1125a7"></a>
glm::vec4&#160;</td><td class="memItemRight" valign="bottom"><b>mColor</b></td></tr>
<tr class="separator:a155f0360a4c85f7ba025db530c1125a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Command that changes a color in the palette. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a0c77133a022d16d1aa55ba477dade531"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c77133a022d16d1aa55ba477dade531">&#9670;&nbsp;</a></span>joinCommand()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool pepr3d::CmdColorManagerChangeColor::joinCommand </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classpepr3d_1_1_command_base.html">CommandBase</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Join this command with other command of the same commandType, uniting both commands into this command's contents. </p>
<dl class="section return"><dt>Returns</dt><dd>true on successful join </dd></dl>

<p>Reimplemented from <a class="el" href="classpepr3d_1_1_command_base.html#a9ef408154b7cb446e626e049f268abb4">pepr3d::CommandBase&lt; Geometry &gt;</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/commands/<a class="el" href="_cmd_color_manager_8h_source.html">CmdColorManager.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_cmd_color_manager_change_color.html">CmdColorManagerChangeColor</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
